Change Firestore credentials to use shared_ptr#1827
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
✅ Integration test succeeded!Requested by @a-maurice on commit c7fd131 |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request correctly replaces std::unique_ptr with std::shared_ptr for Firestore's authentication and App Check credentials providers. This change is necessary to align with the iOS SDK and resolve runtime errors. The modifications are applied consistently across all relevant files, including function signatures, implementations, and test utilities. The release notes have also been updated to reflect this fix. I have one minor suggestion regarding include order to better align with style guidelines.
|
|
||
| #include "firestore/src/main/create_credentials_provider.h" | ||
|
|
||
| #include <memory> |
cherylEnkidu
left a comment
There was a problem hiding this comment.
Thank you for the fix!
Description
Change Firestore's Auth and App Check credentials to use shared_ptr's instead of unique_ptr. This is because the iOS repo changed to use shared_ptrs recently, and the mismatch seems to be causing runtime errors. See firebase/firebase-ios-sdk#15558
Fixes firebase/firebase-unity-sdk#1383
Testing
Running tests locally
Type of Change
Place an
xthe applicable box:Notes
Release Notessection ofrelease_build_files/readme.md.